package com.ftg.learn.service.impl;

import com.ftg.learn.entity.ProdEntity;
import com.ftg.learn.mapper.ProdMapper;
import com.ftg.learn.service.ProdService;
import com.ftg.learn.vo.ProdRedisVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 商品业务接口实现类
 *
 * @author 布衣
 */
@Service
public class ProdServiceImpl implements ProdService {

    @Resource
    private ProdMapper prodMapper;

    @Override
    public ProdRedisVo getById(Long prodId) {
        return prodMapper.getById(prodId);
    }
}
